<include file="Public/head" />
<include file="Public/menu" />
<include file="Hotels/menu" />
<!-- 详情页 -->
<div class="indexBox">
    <div class="boxTitle">客房列表</div>
    <div id="list">
        <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
            <tbody>
                <tr>
                    <th width="40" align="center">编号</th>
                    <th width="150" align="center">酒店</th>
                    <th width="150" align="center">客房</th>
                    <th width="150" align="center">价格</th>
                    <th width="150" align="center">是否上架</th>
                    <th width="150" align="center">操作</th>
                </tr>
                <volist name="list" id="v">
                <tr>
                    <td align="center">{$v.id}</td>
                    <td align="center">{$v.hotel}</td>
                    <td align="center">{$v.name}</td>
                    <td align="center">{$v.price}</td>
                    <td align="center">
                        <eq name="v.onsale" value="1">上架<else />下架</eq>
                    </td>
                    <td align="center">
                        <a href="{:U('Hotels/editRoom')}&id={$v.id}">编辑</a> | <a href="{:U('Hotels/delRoom')}&id={$v.id}">删除</a>
                    </td>
                </tr>
                </volist>
            </tbody>
        </table>
    </div>
    <div class="clear"></div>
    <div class="pager">
        总计 {$count} 个记录，共 {$pages} 页，当前第 {$nowpage} 页
        <if condition="$pages != 0">{$page}</if>
    </div>
    <script type="text/javascript">
        $(function(){
            $(".pager>div").css("display", "inline-block");
        });

    </script>
</div>
<include file="Public/footer" />